package com.xwj.service.Interface;

import com.github.pagehelper.PageInfo;
import com.xwj.dto.RepairInfoDto;
import com.xwj.entity.RaRepairInfo;

import java.util.List;
import java.util.concurrent.Future;

public interface RaRepairInfoService {

    PageInfo<RaRepairInfo> findAllInfo(int pageIndex, int pageSize);

    PageInfo<RaRepairInfo> findRepairInfoByUserId(int pageIndex, int pageSize, String userId);

    PageInfo<RaRepairInfo> findByProperty(int pageIndex, int pageSize, RepairInfoDto repairInfoDto);

    PageInfo<RaRepairInfo> frontFindByProperty(int pageIndex, int pageSize, RepairInfoDto repairInfoDto);

    int addOneInfo(RaRepairInfo raRepairInfo);

    Future<Boolean> addOneInfoSync(RaRepairInfo raRepairInfo);

    int updateByProperty(String id, String userId, int status, String title, String reason, String phone, String address);

    Future<Boolean> updateByPropertySync(String id, String userId, int status, String title, String reason, String phone, String address);

    int deleteByIds(List<String> ids);

    Integer findRepairStatusById(String id);

    Future<Boolean> updateDelflag(List<String> ids);
}
